package com.ly.video.api.user.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class UserEntity implements Serializable {

    private Integer uid;
    private Integer openid;
    private Integer weight;
    private Integer state;
    private Integer father;
    private Integer coin;
    private Integer totalCoin;
    private Integer isOk;

    public UserEntity(Integer uid, Integer openid, Integer weight, Integer state, Integer father, Integer coin, Integer totalCoin, Integer isOk) {
        this.uid = uid;
        this.openid = openid;
        this.weight = weight;
        this.state = state;
        this.father = father;
        this.coin = coin;
        this.totalCoin = totalCoin;
        this.isOk = isOk;
    }

    public UserEntity() {
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getOpenid() {
        return openid;
    }

    public void setOpenid(Integer openid) {
        this.openid = openid;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getFather() {
        return father;
    }

    public void setFather(Integer father) {
        this.father = father;
    }

    public Integer getCoin() {
        return coin;
    }

    public void setCoin(Integer coin) {
        this.coin = coin;
    }

    public Integer getTotalCoin() {
        return totalCoin;
    }

    public void setTotalCoin(Integer totalCoin) {
        this.totalCoin = totalCoin;
    }

    public Integer getIsOk() {
        return isOk;
    }

    public void setIsOk(Integer isOk) {
        this.isOk = isOk;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof UserEntity)) return false;
        UserEntity that = (UserEntity) o;
        return Objects.equals(getUid(), that.getUid()) && Objects.equals(getOpenid(), that.getOpenid()) && Objects.equals(getWeight(), that.getWeight()) && Objects.equals(getState(), that.getState()) && Objects.equals(getFather(), that.getFather()) && Objects.equals(getCoin(), that.getCoin()) && Objects.equals(getTotalCoin(), that.getTotalCoin()) && Objects.equals(getIsOk(), that.getIsOk());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getUid(), getOpenid(), getWeight(), getState(), getFather(), getCoin(), getTotalCoin(), getIsOk());
    }
    @Override
    public String toString() {
        return "UserEntity{" +
                "uid=" + uid +
                ", openid=" + openid +
                ", weight=" + weight +
                ", state=" + state +
                ", father=" + father +
                ", coin=" + coin +
                ", totalCoin=" + totalCoin +
                ", isOk=" + isOk +
                '}';
    }
}
